<?php

class Application_HTMLAccess 
{
	private $_html;
	private $_xPath;
	
	//costruttore 
	public function __construct() {
		$this->_html = new DOMDocument();
		$this->_html->loadHtmlFile(APPLICATION_PATH . '/resources/fileOutput.html');
		$this->_xPath = new DOMXPath($this->_html);
	}

	public function getQueryResults($nTable){
		$nodelist = $this->_xPath->query( "//body/table[$nTable]/tr/td" );
		return $nodelist;
	}

}